<?php if(!empty($student_all_profiles)) :?>
	<div class="accord">
	  <?php foreach($student_all_profiles as $v): ?>
			
			<?php
				$profile = isset($v['profile']) && $v['profile'] ? $v['profile'] : FALSE;
				$section = isset($v['section']['data']) && $v['section']['data'] ? $v['section']['data'] : FALSE;
			?>	

			<h4>SY <?php echo $profile->sy_from.' - '.$profile->sy_to; echo $profile->desc!=''?' ( '.$profile->desc.' )':''; ?></h4>

			<div>
				<?if($section):?>
					<p class="lead" >Section - &nbsp;		<code><?=ucwords($section->section_name);?></code></p>
					<p class="lead" >Adviser - &nbsp;		<code><?=ucwords($section->fullname);?></code></p>
				<?else:?>
					<div class="alert alert-warning">No section assigned.</div>
				<?endif;?>
			</div>

		<?php endforeach; ?>
	</div>
<?php endif; ?>